#include "KeyBoardEvent.h"

KeyBoardEvent::KeyBoardEvent(UIControl* p_pSender) : UIEvent(p_pSender)
{
}

KeyBoardEvent::~KeyBoardEvent()
{
}

UINT KeyBoardEvent::getKey()
{
	return m_uKey;
}

bool KeyBoardEvent::isDown()
{
	return m_isDown;
}

void KeyBoardEvent::keyDown(UINT p_uKey)
{
	m_uKey = p_uKey;
	m_isDown = true;
}

void KeyBoardEvent::keyUp(UINT p_uKey)
{
	m_uKey = p_uKey;
	m_isDown = false;
}